package cz.acies.genea.data.gedcom.model;

public class Generator extends ExtensionContainer
{
	private String value = null;
	private String name = null;
	private String vers = null;
	private GeneratorCorporation corp = null;
	private GeneratorData data = null;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVersion() {
		return vers;
	}

	public void setVersion(String vers) {
		this.vers = vers;
	}

	public GeneratorCorporation getGeneratorCorporation() {
		return corp;
	}

	public void setGeneratorCorporation(GeneratorCorporation corp) {
		this.corp = corp;
	}

	public GeneratorData getGeneratorData() {
		return data;
	}

	public void setGeneratorData(GeneratorData data) {
		this.data = data;
	}

	public void accept(Visitor visitor) {
		if (visitor.visit(this)) {
			if (corp != null) {
				corp.accept(visitor);
			}
			if (data != null) {
				data.accept(visitor);
			}
			super.visitContainedObjects(visitor);
			visitor.endVisit(this);
		}
	}
}
